﻿// Author: Radu-Mihail
// Project: UsersModule, File: GenericUser.cs
// Namespace: UsersModule, Class: GenericUser
// Path: G:\Secure Project\Library\UsersModule
// Code lines: 45, Size of file: 1.25 KB
// Creation date: 1/11/2009 10:56 PM
// Last modified: 1/13/2009 7:51 PM

#region Using directives
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion

namespace UsersModule
{
    public abstract class GenericUser
    {
        #region Private Fields
        protected string _userName;
        protected UserTypes _userType;
        protected bool _active;
        #endregion

        /// <summary>
        /// Create generic user
        /// </summary>
        /// <param name="userName">User name</param>
        /// <param name="userType">User type</param>
        protected GenericUser(string userName, UserTypes userType, bool active) {
            _userName = userName;
            _userType = userType;
            _active = active;
        } // GenericUse)

        #region Properties
        public string UserName { get { return _userName; } }
        public UserTypes UserType { get { return _userType; } }
        /// <summary>
        /// Active
        /// </summary>
        /// <returns>Bool</returns>
        public bool Active { get { return _active; } } // Active
        #endregion
       
    }
}
